package com.usian.user.feign;

import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Auther：DONG on 2021/11/4
 **/
@FeignClient("leadnews-wemedia")
public interface WeMediaFeign {
    @GetMapping("/api/v1/wmuser/findbyname/{name}")
    public WmUser queryWmUserByName(@PathVariable String name);
    @PostMapping("/api/v1/wmuser/save")
    public boolean saveWmUser(@RequestBody WmUser wmUser);
}
